import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
    routes: [
        {
            path: '/join',
            name: '报名',
            component: () => import('./views/Join'),
        },
        {
            path: '/open',
            name: '抽奖',
            component: () => import('./views/Lottery'),
        },
        {
            path: '/admin',
            name: '管理名单',
            component: () => import('./views/Manager'),
        },
        {
            path: '*',
            redirect: '/'
        }
    ]
});
